package com.sgb.kjwl.view.ui.fragment.home;

import android.content.Context;
import androidx.databinding.DataBindingUtil;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sgb.kjwl.AppFragment;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.FragmentLeaseEquipmentBinding;
import com.sgb.kjwl.di.home.DaggerHomeFragComponent;
import com.sgb.kjwl.di.home.HomeFragModule;
import com.sgb.kjwl.view.ui.activity.MainActivity;
import com.sgb.kjwl.viewmodel.home.LeasingEquipmentModel;
import com.swgk.core.base.di.AppComponent;

import javax.inject.Inject;


/**
 * Description:
 * Author cfk
 * Time
 * 租赁市场中的设备fragment
 */
public class LeasingEquipmentFragment extends AppFragment {

    private FragmentLeaseEquipmentBinding binding;
    private MainActivity activity;
    @Inject
    LeasingEquipmentModel viewModel;
    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        if (context instanceof MainActivity) {
            activity = (MainActivity) context;
        }
    }
    @Override
    protected void setupFragmentComponent(AppComponent appComponent) {
        DaggerHomeFragComponent.builder()
                .appComponent(appComponent)
                .homeFragModule(new HomeFragModule(this))
                .build()
                .inject(this);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        binding = DataBindingUtil.inflate(inflater, R.layout.fragment_lease_equipment, container, false);
        return binding.getRoot();

    }
    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initView();
    }
    public void initView() {



    }


}
